" helper functions for run clearjunk on all dirs from ls -l {{{1
function! ClearJunkOneLevelFunction()
  " wrapping is evil
  set nowrap
  " remove everything but dir lines
  v/^d/d
  " remove excessive ls information
  g/./normal 8daW
  " global commands
  g/./normal 0y$Irm -f "zp/\._*"; rm -f "
  g/./normal A/.DS_Store"
  " do the same for the current dir
  normal ggOrm -f \._*; rm -f \.DS_Store
  " output
  write! /tmp/vim-gen-clearJunkOneLevel.fish
  " quit
  q!
endfunction
